package com.clstu.tankgame3;

import java.awt.*;
import java.util.Vector;

public class Hero extends Tank {
    public Hero(int x, int y) {
        super(x, y);
        this.setSpeed(5);
    }
    public void shotEnemyTank(){//发射子弹
        //if(shots.size()>5) return;//控制我方同一时间最多可以发射5颗子弹
        Shot shot = shot(Color.cyan);
        new Thread(shot).start();
        getShots().add(shot);
    }
}
